package com.wander.patterns.act.state;

import lombok.Data;

/**
 * @description:
 * @author: zhuyong
 * @create: 2019-09-11 16:50
 **/
@Data

public class StatusContext {
    private Status status;


    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        System.out.println("状态反生改变");
        this.status = status;
        status.handle();
    }

}
